#!/usr/bin/env python3.10
# -*- encoding: utf-8 -*-
'''
@File    :   exc.py
@Time    :   2023/05/04 16:52:23
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
class UnicornException(Exception):

    def __init__(self, code, errmsg, data=None):
        """
        失败返回格式
        :param code:
        :param errmsg:
        """
        if data is None:
            data = {}
        self.code = code
        self.errmsg = errmsg
        self.data = data